#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QPushButton>



class QLabel;

class MainWindow : public QWidget
{
    Q_OBJECT

  public:
    explicit MainWindow(QWidget *parent = nullptr);
  private:
    virtual void paintEvent(QPaintEvent *event);
    QWidget *centralWidget;
    int TriangleOffset = 0;
    int Direction;
    bool showTriangle = true;

    QPushButton *refreshButton;
    virtual void showEvent(QShowEvent *e);
    QPoint getAdjustedPosition(QPoint mousePressPosition, QPoint mouseReleasedPosition);
    bool screenshot = true;
    int Direction_Up;
    int Direction_Down;


  public slots:
    void onMouseButtonPressed(int x, int y);
    void onRefreshButtonPressed();
    void onCopyButtonPressed();
    void setCentralWidget(QWidget *widget);
};

#endif // MAINWINDOW_H
